package com.ticket.sass.common.entity.tenant;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 小程序配置
 * </p>
 *
 * @author ywb
 * @since 2024-03-06
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("wxa_configs")
@ApiModel(value="WxaConfigsEntity对象", description="小程序配置")
public class WxaConfigEntity implements Serializable {
    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "首页分享封面")
    private String homeShareCover;

    @ApiModelProperty(value = "首页分享文案")
    private String homeShareContent;

    @ApiModelProperty(value = "隐私协议名称")
    private String privacyPolicyTitle;

    @ApiModelProperty(value = "隐私协议内容")
    private String privacyPolicyContent;
    
    @ApiModelProperty(value = "小程序应用 id")
    private String appid;
    
    @ApiModelProperty(value = "小程序密钥")
    private String secret;

    @ApiModelProperty(value = "影院 id")
    private Long cinemaId;
    
    @ApiModelProperty(value = "租户 id")
    private Long tenantId;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    public LocalDateTime createdAt;
    
    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    public LocalDateTime updatedAt;
    
    @TableField(select = false)
    @ApiModelProperty(value = "删除时间")
    @TableLogic(value = "null", delval = "now()")
    public LocalDateTime deletedAt;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getHomeShareCover() {
        return homeShareCover;
    }

    public void setHomeShareCover(String homeShareCover) {
        this.homeShareCover = homeShareCover;
    }

    public String getHomeShareContent() {
        return homeShareContent;
    }

    public void setHomeShareContent(String homeShareContent) {
        this.homeShareContent = homeShareContent;
    }

    public String getPrivacyPolicyTitle() {
        return privacyPolicyTitle;
    }

    public void setPrivacyPolicyTitle(String privacyPolicyTitle) {
        this.privacyPolicyTitle = privacyPolicyTitle;
    }

    public String getPrivacyPolicyContent() {
        return privacyPolicyContent;
    }

    public void setPrivacyPolicyContent(String privacyPolicyContent) {
        this.privacyPolicyContent = privacyPolicyContent;
    }
    
    public Long getCinemaId() {
        return cinemaId;
    }

    public void setCinemaId(Long cinemaId) {
        this.cinemaId = cinemaId;
    }

    public Long getTenantId() {
        return tenantId;
    }

    public void setTenantId(Long tenantId) {
        this.tenantId = tenantId;
    }

    public LocalDateTime getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(LocalDateTime createdAt) {
        this.createdAt = createdAt;
    }

    public LocalDateTime getUpdatedAt() {
        return updatedAt;
    }

    public void setUpdatedAt(LocalDateTime updatedAt) {
        this.updatedAt = updatedAt;
    }

    public LocalDateTime getDeletedAt() {
        return deletedAt;
    }

    public void setDeletedAt(LocalDateTime deletedAt) {
        this.deletedAt = deletedAt;
    }
    
    public String getAppid() {
        return appid;
    }
    
    public void setAppid(String appid) {
        this.appid = appid;
    }
    
    public String getSecret() {
        return secret;
    }
    
    public void setSecret(String secret) {
        this.secret = secret;
    }
    
    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("WxaConfigEntity{");
        sb.append("id=").append(id);
        sb.append(", homeShareCover='").append(homeShareCover).append('\'');
        sb.append(", homeShareContent='").append(homeShareContent).append('\'');
        sb.append(", privacyPolicyTitle='").append(privacyPolicyTitle).append('\'');
        sb.append(", privacyPolicyContent='").append(privacyPolicyContent).append('\'');
        sb.append(", cinemaId=").append(cinemaId);
        sb.append(", tenantId=").append(tenantId);
        sb.append(", createdAt=").append(createdAt);
        sb.append(", updatedAt=").append(updatedAt);
        sb.append(", deletedAt=").append(deletedAt);
        sb.append('}');
        return sb.toString();
    }
}
